package com.zfj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

//通过@ImportResource加载xml配置文件
//@ImportResource(value = "classpath:config.xml")
@ServletComponentScan("com.zfj.servlet")
@ComponentScan("com.zfj.mapper")
@SpringBootApplication
public class ServletLearnApplication {

	public static void main(String[] args) {
		SpringApplication.run(ServletLearnApplication.class, args);
	}

}
